package bch.maven.plugin.service;

import bch.maven.plugin.event.SyncResultEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import java.util.concurrent.CompletableFuture;

@Component
@Slf4j
public class Handler {

    @EventListener
    public void handleSyncResultEvent(SyncResultEvent event) {
        log.info(Thread.currentThread().getName() + " handle sync result event.");
        event.setResult("Success");
    }
}
